package com.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.entity.ComplaintProposal;
import com.repository.ComplaintProposalDao;
import com.service.base.BaseServiceImp;

@Service("ComplaintProposalService")
public class ComplaintProposalServiceImp extends BaseServiceImp<ComplaintProposal> implements  ComplaintProposalService{
	@Autowired
	private ComplaintProposalDao appendixDao;
	
	@Override
	@Transactional
	public boolean insertprice(ComplaintProposal o) {
		// TODO Auto-generated method stub
		ComplaintProposal app=new ComplaintProposal();
		List<ComplaintProposal> apps=appendixDao.find(app);
		if (apps.size()>0) {
			return false;
		}
		//String goodId=o.getGoodId();
		return true;
	}
	
}
